FROM openjdk:8-jdk-slim
LABEL maintainer=wwm
RUN mkdir -p /BL
COPY target/BugList.jar /BL/BugList.jar
#将容器内这个目录的数据挂载到宿主机上
VOLUME ["/home/buglist","/BL"]

ENTRYPOINT ["java","-jar","-Duser.timezone=GMT+08","-Xms256m","-Xmx1024m","/BL/BugList.jar"]